package util.err
{
	import flash.filesystem.File;

	public class FileNotExistErr extends Error
	{
		/**
		 *  
		 * @param fileInfo 文件路径字符串或者File对象.
		 * @param msg	相关附加信息
		 * 
		 */		
		public function FileNotExistErr( fileInfo:*, msg:String = "" )
		{
			var filePath:String = "";
			
			if( fileInfo is File )
			{
				filePath = File( fileInfo ).nativePath;
			}
			else 
			{
				filePath = fileInfo.toString();
			}
			
			super( msg + "::\"" + filePath + "\" isn't exists ! ");
		}
	}
}